using System;
using PHSRAG.Insight21.Common.Pages;

namespace PHSRAG.Insight21.Personnel
{
    /// <summary>
    /// The comments.cs class supports the Comments.aspx page
    /// It supports showing the comments for am employee salary distribution
    /// </summary>
    public partial class Comments : NoCachePage
    {
        #region Page load event handler

        /// <summary>
        ///  Handler for the event raised when the page is being loaded.
        ///  Pick the notes from the query string and bind it to the text box
        /// </summary>
        /// <param name="sender">Control which raised the event</param>
        /// <param name="e">Argument associated with the event</param>
        protected void OnPageLoad(object sender, EventArgs e)
        {
            notes.Text = Request.QueryString[Constants.QueryStringNotesKey];
        }

        #endregion

        #region Web Form Designer generated code

        /// <summary>
        /// Handler for the event raised when the page is being initialized.
        /// Retrieve the cache policy and the page cache policy in force.
        /// </summary>
        /// <param name="e">Argument associated with the event</param>
        protected override void OnInit(EventArgs e)
        {
            InitializeComponent();
            base.OnInit(e);
        }

        /// <summary>
        /// Required method for Designer support 
        /// </summary>
        private void InitializeComponent()
        {
            this.Load += new System.EventHandler(OnPageLoad);
        }

        #endregion
    }
}